package util;

import image.GUIImage;

import javax.swing.ImageIcon;

public class MyFactory {
	public static ImageIcon getImageIcon(String filename){
		return new ImageIcon(GUIImage.class.getResource(filename));
	}
	public static void main(String[] args) {
		System.out.println(new MyFactory().getImageIcon("login.png").getIconWidth());
	}
}
